package com.weirdor.wxchat.module.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 图文素材新闻
 * </p>
 *
 * @author weirdor
 * @since 2017-12-01
 */
@TableName("qywx_newsitem")
public class QywxNewsitem extends Model<QywxNewsitem> {

    private static final long serialVersionUID = 1L;

	private String id;
    /**
     * 标题
     */
	private String title;
    /**
     * 作者
     */
	private String author;
    /**
     * 图片路径
     */
	@TableField("image_path")
	private String imagePath;
    /**
     * 内容
     */
	private String content;
    /**
     * 图文模板id
     */
	private String templateid;
    /**
     * 摘要
     */
	private String description;
    /**
     * 新闻顺序
     */
	@TableField("order_no")
	private String orderNo;
    /**
     * 消息内容的url
     */
	private String url;
    /**
     * 活动id
     */
	private String hdid;
    /**
     * 创建人名称
     */
	@TableField("create_name")
	private String createName;
    /**
     * 创建人登录名称
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建日期
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 更新人名称
     */
	@TableField("update_name")
	private String updateName;
    /**
     * 更新人登录名称
     */
	@TableField("update_by")
	private String updateBy;
    /**
     * 更新日期
     */
	@TableField("update_date")
	private Date updateDate;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTemplateid() {
		return templateid;
	}

	public void setTemplateid(String templateid) {
		this.templateid = templateid;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getHdid() {
		return hdid;
	}

	public void setHdid(String hdid) {
		this.hdid = hdid;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "QywxNewsitem{" +
			"id=" + id +
			", title=" + title +
			", author=" + author +
			", imagePath=" + imagePath +
			", content=" + content +
			", templateid=" + templateid +
			", description=" + description +
			", orderNo=" + orderNo +
			", url=" + url +
			", hdid=" + hdid +
			", createName=" + createName +
			", createBy=" + createBy +
			", createDate=" + createDate +
			", updateName=" + updateName +
			", updateBy=" + updateBy +
			", updateDate=" + updateDate +
			"}";
	}
}
